<?php
/**
 * User: lie
 * Date: 2020/11/10 12:58
 * Title:
 * description:
 * Error:
 */
    $str = "你好PHP 很高兴认识你";
    $arr = explode(" ",$str);   // 将字符串切割成数组
    echo "原字符串：".$str;               // 输出原字符串
    echo "<br>";
    echo "切割后的字符串变成数组: ";print_r($arr);
    echo "<br>";
    echo "合成后的字符串：".implode($arr);  // 将数组组合成字符串